package spring.boot.activemq.receive.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 接收mq消息
 */
@Component
public class Topic12 {
    public Logger log = LoggerFactory.getLogger(this.getClass());
    @JmsListener(destination = "topic")
    public void process(String msg) {
       log.info(" topic 接收消息  : " + msg);
    }
}
